package my.thread;

public class ThreadSub implements Runnable {
	private ThreadMethod method;

	public ThreadSub(ThreadMethod method) {
		this.method = method;
	}

	@Override
	public void run() {
		while (true) {
			method.calcNumber2();
		}
	}
}
